package com.csun.cmny.provider.model.dto;

import com.csun.cmny.provider.model.domain.OmcSetMealItem;
import com.csun.cmny.provider.validator.OmcSetMealAddValidator;
import com.csun.cmny.provider.validator.OmcSetMealEditValidator;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class SetMealDto implements Serializable {

    private static final long serialVersionUID = -3803584935800035023L;

    /*
    * id
    * */
    @NotNull(message = "{SetMeal.id.null}",
            groups = {OmcSetMealEditValidator.class})
    private Long id;

    /**
     * 套餐名称
     */
    @NotNull(message = "{SetMeal.name.null}",
            groups = {OmcSetMealAddValidator.class})
    @NotEmpty(message = "{SetMeal.name.null}",
            groups = {OmcSetMealAddValidator.class})
    @NotEmpty(message = "{SetMeal.name.null}",
            groups = {OmcSetMealEditValidator.class})
    private String name;

    /**
     * 实际价格
     */
    private BigDecimal actualPrice;

    /**
     * 描述
     */
    private String remark;

    /**
     * 组织Id
     */
    private Long groupId;

    /*
     * 套餐项集合
     * */
    List<OmcSetMealItem> setMealItemList;

    /*
     * 套餐原价
     * */
    private BigDecimal originalPrice;

    /*
     * 折扣数乘以100后的值
     * */
    private Integer discount;

    /*
     * 减免价格
     */
    private BigDecimal subPrice;

}
